﻿namespace System
{

    public static class DateTimeEx
    {
        public static TimeStamp ToTimeStamp(this DateTime dt)
        {
            long ticks = (dt - TimeStamp.LocalEpoch).Ticks;
            return new TimeStamp(ticks);
        }
    }
}
